rename

fun rename(newName: String)

Synchronously rename the file or directory, erring if a file or directory already exists with the new name

Sources

js source
Link copied to clipboard